<?php
$siteSetting = SiteSetting::model()->findAll();
$siteSetting = CHtml::listData($siteSetting, 'key', 'value');

$siteInfo = SiteInfo::model()->findAll();
$siteInfo = CHtml::listData($siteInfo, 'key', 'value');
?>

<div class="spotlight">
            <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/cat/4.jpg" alt="Category Image" class="spl-thumb"/>
            <h2 class="spl-info small"><?php echo isset($siteSetting['contact_page_title']) ? $siteSetting['contact_page_title'] : 'siteSetting:contact_page_title'; ?></h2>
        </div><!-- /.spotlight -->
        <section class="main-content container">
            <div class="ct-info clearfix">
                <h3 class="title-bar"><a href="#"><?php echo isset($siteSetting['contact_page_title_bar']) ? $siteSetting['contact_page_title_bar'] : 'siteSetting:contact_page_title_bar'; ?></a></h3>
                <div class="cti-content">
                	<?php echo isset($siteSetting['contact_page_content']) ? $siteSetting['contact_page_content'] : 'siteSetting:contact_page_content'; ?>
                </div>
                <div class="cti-social">
                    <ul>
                        <li><a href="<?php echo isset($siteInfo['contact_facebook']) ? $siteInfo['contact_facebook'] : 'siteInfo:contact_facebook'; ?>" class="icon-social">Mai Hoang Facebook</a></li>
                        <li><a href="<?php echo isset($siteInfo['contact_googleplus']) ? $siteInfo['contact_googleplus'] : 'siteInfo:contact_googleplus'; ?>" class="icon-social gplus">Mai Hoang GooglePlus</a></li>
                        <li><a href="<?php echo isset($siteInfo['contact_mail']) ? $siteInfo['contact_mail'] : 'siteInfo:contact_email'; ?>" class="icon-social mail">Mai Hoang Email</a></li>
                        <li><a href="<?php echo isset($siteInfo['contact_site']) ? $siteInfo['contact_site'] : 'siteInfo:contact_site'; ?>" class="icon-social web">Mai Hoang Website</a></li>
                    </ul>
                </div>
            </div>
            <div class="ct-map">
                <div id="map-canvas"></div>
            </div>
            <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
            <script>
                var map;
                function initialize() {
                  var mapOptions = {
                    zoom: 16,
                    center: new google.maps.LatLng(21.027850, 105.852272),
                    mapTypeControl: false,
                    mapTypeId: google.maps.MapTypeId.ROADMAP
                  };
                  map = new google.maps.Map(document.getElementById('map-canvas'),
                      mapOptions);
                }

                google.maps.event.addDomListener(window, 'load', initialize);
            </script>
        </section><!-- /.main-content -->